import {MyMap} from "../../utils/lodash";

export async function getFav() {
    var favQuery = new AV.Query('fav')
    var result = await  favQuery.limit(999).find()
    if (result.length > 0) {
        return MyMap(result, item => item.toJSON())
    } else {
        return []
    }

}